public class Solution {
    public static void main(String[] args) {
        Thread thread1 = new Thread(() -> {
            while(true) {
                System.out.println("禁止懒惰!!!");
                try {
                    Thread.sleep(10);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        });
        Thread thread2 = new Thread(() -> {
            while(true) {
                try {
                    System.out.println("休息一下");
                    Thread.sleep(100);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        });
        thread1.start();
        thread2.start();
    }
}
